package ua.yandex.shad.tempseries;

public class TemperatureSeriesAnalysis {
    
    private final double[] temperatureSeries;

    public TemperatureSeriesAnalysis(double[] temperatureSeries) {
        this.temperatureSeries = temperatureSeries;
    }
    
    public double calcAverageTemp(){
        double sum = 0;
        for (double d : temperatureSeries)
            sum += d;
        return sum/temperatureSeries.length;
    }    
    
    public double calcTempDeviation(){
        return 0;
    }
    
    public double findTempClosestToZero(){
        return 0;
    }
    
    public double findTempClosestToValue(double tempValue){
        return 0;
}
    
    public double[] findTempsLessThen(double tempValue){
        return new double[]{};
    }
    
    public double[] findTempsGreaterThen(double tempValue){
        return new double[]{};
    }
    
    public double[] forecatsTemp(double tempValue){
        return new double[]{};
    }
}
